expanding logarithmic expressions